package com.xiaocheng.core.factory;
/**
 * 
* @ClassName: MyTest 
* @Description: 单例模式
* @author 高亚鹏
* @date 2018年5月11日 下午10:42:24 
*
 */
public class MyTest {
	private static MyTest test;
	private MyTest(MyTest test){
		MyTest.test = test;
	}
	private MyTest(){
		
	}
	public void syso(){
		System.out.println("对着呢");
	}
	public static MyTest getMyTest(){
		if(MyTest.test == null){
			MyTest.test = new MyTest();
		}
		return MyTest.test;
	}

}
